/**
 * @requestUrl 接口地址
 * @historyTracker history上报
 * @hashTracker hash上报
 * @domTracker 携带Tracker-key 点击事件上报
 * @sdkVersion sdk版本
 * @extra 透传字段
 * @jsError js和promise报错异常上报
 */
export interface DefaultOptions {
    uuid: string | undefined
    requestUrl: string | undefined
    historyTracker: boolean | undefined
    hashTracker: boolean | undefined
    domTracker: boolean | undefined
    sdkVersion: string | number
    extra: Record<string, any> | undefined
    jsError: boolean
}

// requestUrl 为必传
export interface Options extends Partial<DefaultOptions> {
    requestUrl: string
}

// 版本
export enum TrackerConfig {
    version = '1.0.0'
}

// 上报必传参数
export type reportTrackerData = {
    [key: string]: any,
    event: string,
    targetKey: string
}